<%@page import="util.DBUtil"%>
<%@page import="com.dao.NbaDao"%>
<%@page import="com.bean.Nba" %>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<link rel="stylesheet" href="css/qiuyuanxinxi.css" />
		<link rel="shortcut icon" href="img/favicon.ico">
		
		<title></title>
		<style>
    	td{
    		white-space: nowrap;
    		align:center;
    	}
   		 </style>
	</head>
	<body>
		<!----整个界面--->
		<div class="page">
			<form action="NbaServlet?act=4" method="post">
			<div class="nav">
				<a>欢迎来到NBA球星管理系统</a>
			</div>
            <div class="scroll">
            	<marquee>尊敬的&nbsp;${username}&nbsp;&nbsp;欢迎进入NBA球星管理系统，你想要的应有尽有！！</marquee>
            </div>
			<div class="left">
			<div class="img">
				<img src="img/11.png" width="200" height="100">
			</div>
             <div class="small_left1></div>
             <div class="small_left1"></div>
             <div class="small_left1"></div>
             <div class="small_left1"></div>
              <div class="small_left" onclick="window.location.href= 'qiuyuanAllxinxi.jsp'">
             	<a href="NbaServlet?act=14"><img src="img/15.ico" width="30px" height="30px">球员信息</a>
             </div>
             <div class="small_left" onclick="window.location.href= '#'">
             	<a href="#"><img src="img/1.ico" width="30px" height="30px">球队信息</a>
             </div>
             <div class="small_left" onclick="window.location.href= 'lishi.jsp'">
             	<a href="lishi.jsp"><img src="img/3.ico" width="30px" height="30px">球队历史</a>
             </div>
            
             <div class="small_left" onclick="window.location.href= 'wodeqiudui.jsp'"><a href="wodeqiudui.jsp"><img src="img/2.png" width="30px" height="30px">我的球队</a></div>
              <div class="small_left" onclick="window.location.href= 'home.jsp'"><a href="home.jsp"> <img src="img/20.ico" width="30px" height="30px">个人中心</a></div>
                <div class="zi">
                <a href="shouye.jsp">返回首页</a>
             </div>
			</div>
            	<div class="right_img">
				<!-----搜索框开始------->
			 <div class="sousuo">
              	    	<div class="input_1">
              	    		<input type="search" name="NPlayer" value="" placeholder="请输入要搜索的球员名称" style="width: 200px; height: 30px;" />
              	    		<input type="submit"  value="搜索一下"  style="width: 80px; height: 31px; background-color: #EECFA1;border: solid 1.5px #EE7942;"/>
              	    	</div>
              	    </div>
              	    <div  class="table1">
              	 <table width="1000" height="40"  align="center" >
              	 <% 
   	 				ArrayList<Nba> list = (ArrayList<Nba>)session.getAttribute("score");
    				if(list!=null && list.size() != 0){ %>
              	 	<tr align="center" style="width: 100;height: 40; ">
              	 		<td bgcolor="#EE7942">球员编号</td>
              	 		<td bgcolor="#EE7942">球员名称</td>
              	 		<td bgcolor="#EE7942">所属球队</td>
              	 		<td bgcolor="#EE7942">出场次数</td>
              	 		<td bgcolor="#EE7942">先发次数</td>
              	 		<td bgcolor="#EE7942">场均助攻</td>
              	 		<td bgcolor="#EE7942">场均时间</td>
              	 		<td bgcolor="#EE7942">三分命中率%</td>
              	 		<td bgcolor="#EE7942">罚球命中率%</td>
              	 		<td bgcolor="#EE7942">场均抢断</td>
              	 		<td bgcolor="#EE7942">场均失误</td>
              	 		<td bgcolor="#EE7942">详情</td>
              	 		<td bgcolor="#EE7942">添加</td>
              	 	</tr>
              	 	<%
    					for(int j = 0;j < list.size();j++){ %>
              	 	<tr align="center" style="width: 100;height: 40;" bgcolor="#EECFA1">
              	 		<td><%=list.get(j).getNQiudb() %></td>
		    			<td><%=list.get(j).getNPlayer() %></td>
		    			<td><%=list.get(j).getNTeam() %></td>
		    			<td><%=list.get(j).getNChangc() %></td>
		    			<td><%=list.get(j).getNXianf() %></td>
		    			<td><%=list.get(j).getNZhug() %></td>
		    			<td><%=list.get(j).getNMinute() %></td>
		    			<td><%=list.get(j).getNThreepiont() %></td>
		    			<td><%=list.get(j).getNFaq() %></td>
		    			<td><%=list.get(j).getNQiangd() %></td>
		    			<td><%=list.get(j).getNError() %></td>
		    			<td><a href="NBAListXiangQ.jsp?sid=${list.NPlayer}"><img src="img/xiangqing.ico" width="20px" height="20px"/></a></td>
		    			<td><a href="#"><img src="img/tianjia.ico"  width="20px" height="20px"/></a></td>
              	 	</tr>
              	 			<%}
           	 		}%>
              	 </table>
              </div>
			</div>
			</form>
		</div>
	</body>
</html>
